<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>仪表盘</title>

  <style>
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    body {
      font-family: Arial, sans-serif;
      display: flex;
      flex-direction: column;
      height: 100vh;
    }
    .header {
      background-color: #007BFF;
      width: 100%;
      color: white;
      padding: 10px 20px;
      display: flex;
      align-items: center;
    }
    .header p {
      margin: 0;
      font-size: 18px;
    }
    .container {
      display: flex;
      flex: 1;
    }
    .sidebar {
      width: 20%;
      background-color: #dcdcdc;
      padding: 15px;
      box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    }
    .sidebar h2 {
      font-size: 18px;
      margin-bottom: 15px;
    }
    .sidebar ul {
      list-style: none;
    }
    .sidebar ul li {
      margin-bottom: 10px;
    }
    .sidebar ul li a {
      text-decoration: none;
      color: #333;
      font-size: 16px;
    }
    .sidebar ul li a:hover {
      color: #007BFF;
    }
    .main-content {
      flex: 1;
      padding: 20px;
      overflow-y: auto;
    }
    .main-content h2 {
      font-size: 22px;
      margin-bottom: 15px;
    }
    .main-content p {
      line-height: 1.6;
      font-size: 16px;
    }

    .sidebar ul li a {
      display: block; /* 使链接的点击区域覆盖整个列表项 */
      padding: 10px 15px;
      text-decoration: none; /* 移除默认的下划线 */
      color: #333; /* 文本颜色 */
      background-color: #f9f9f9; /* 背景颜色 */
      border-radius: 5px; /* 圆角边框，增加美观 */
      /*border: 1px solid black; !* 1像素的实线，颜色为浅灰色 *!*/
      transition: box-shadow 0.3s ease, transform 0.3s ease; /* 增加动画过渡效果 */
    }

    /*.sidebar ul li a:hover {*/
    /*  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); !* 鼠标悬浮时的阴影 *!*/
    /*  transform: translateY(-2px); !* 轻微向上移动 *!*/
    /*  background-color: #e6e6e6; !* 鼠标悬浮时背景变化 *!*/
    /*}*/
    .sidebar ul li {
      list-style: none; /* 去掉默认的列表样式 */
      padding: 10px 15px; /* 增加内边距 */
      margin: 8px 0; /* 每个选项间增加间距 */
      background-color: #f9f9f9; /* 默认背景颜色 */
      border-radius: 5px; /* 圆角边框 */
      transition: box-shadow 0.3s ease, transform 0.3s ease; /* 增加过渡效果 */
      cursor: pointer; /* 鼠标悬浮时显示指针 */
    }

    /* 鼠标悬浮时的效果 */
    .sidebar ul li:hover {
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 阴影效果 */
      transform: translateY(-2px); /* 轻微抬起 */
      background-color: #e6e6e6; /* 鼠标悬浮时背景变浅 */
    }

    /* 侧边栏标题样式 */
    .sidebar h2 {
      margin-bottom: 15px;
      font-size: 20px;
      color: #333;
    }
    .welcome{
      background-color: #007BFF;
      font-weight:bolder;
      font-size: 25px;
      color: white;
    }
  </style>
</head>
<body>
<!-- 欢迎信息 -->
<div class="welcome">
  <marquee>
    <p th:text="'欢迎 ' + ${profession} + ' ' + ${username}+' '+'!'"></p>
  </marquee>
</div>

<div class="container">
  <!-- 侧边栏 -->
  <div class="sidebar">
    <h2>功能菜单</h2>
    <ul>

      <!-- 公共功能菜单 -->
      <li><a href="/settings">设置</a></li>
      <li><a href="/choosecourse">学生选课</a></li>
      <li><a href="/grades">成绩查询</a></li>
      <li><a href="/logout">退出系统</a></li>
    </ul>
  </div>

  <!-- 主内容区 -->
  <div class="main-content">
    <h2>功能详情</h2>
    <p>请选择左侧菜单中的功能以查看详情。</p>
  </div>
</div>
</body>
</html>
